Skip to content

Fixed Windows error message over-read#12

Open
SevenSidedVoxel wants to merge 1 commit into
BindBC:masterfrom
SevenSidedVoxel:err-msg-overrun-fix
Open

Fixed Windows error message over-read#12
SevenSidedVoxel wants to merge 1 commit into
BindBC:masterfrom
SevenSidedVoxel:err-msg-overrun-fix

Conversation

@SevenSidedVoxel

Copy link
Copy Markdown

On Windows, the size of error messages is being calculated incorrectly.

Error message displayed:

The specified module could not be found.
a    <-- out of bounds memory read

After the fix:

The specified module could not be found.

@SevenSidedVoxel

Copy link
Copy Markdown
Author

For anyone interested in removing the newlines:
You can add the dwFlag FORMAT_MESSAGE_MAX_WIDTH_MASK to the original call to FormatMessageW().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant